package com.zxc.database;

public class DataBaseFactory {
	public static DataBase getInstance(int type){
		if(type == DataBase.ORACLE){
			return new Oracle();
		}
		else if(type == DataBase.DB2){
			return new DB2();
		}
		else if(type == DataBase.MY_SQL){
			return new MySql();
		}
		
		return null;
	}
}
